package persistence.produitcatalogue.configuration;

import static javax.persistence.GenerationType.IDENTITY;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 
 * @author Guillaume
 *
 */
@Entity
@Table(name = "MARQUE" )
public class Marque implements Serializable {
	
	private int id;
	
	private String libelle;

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name="MARQUE_ID")
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	@Column(name="LIBELLE", length=80, nullable=false)
	public String getLibelle() {
		return libelle;
	}

	public void setLibelle(String libelle) {
		this.libelle = libelle;
	}

}
